// samsting : this file is auto create.

#include "Ons/2015-10-20/OnsWarnListResponse.h"

namespace aliyun { namespace Ons {

OnsWarnListResponse::OnsWarnListResponse() {
}

const string& OnsWarnListResponse::WarnViewDO::YunContact::GetName(void) const {
  return Name_;
}

const string& OnsWarnListResponse::WarnViewDO::YunContact::GetValue(void) const {
  return Value_;
}

const string& OnsWarnListResponse::WarnViewDO::YunContact::GetType(void) const {
  return Type_;
}

const string& OnsWarnListResponse::WarnViewDO::YunContact::GetParams(void) const {
  return Params_;
}

const string& OnsWarnListResponse::WarnViewDO::YunContact::GetAri(void) const {
  return Ari_;
}

const std::vector<OnsWarnListResponse::WarnViewDO::YunContact>& OnsWarnListResponse::WarnViewDO::Getcontacts(void) const {
  return contacts_;
}

const string& OnsWarnListResponse::WarnViewDO::GetAliyunPK(void) const {
  return AliyunPK_;
}

const string& OnsWarnListResponse::WarnViewDO::GetConsumerID(void) const {
  return ConsumerID_;
}

const string& OnsWarnListResponse::WarnViewDO::GetTopic(void) const {
  return Topic_;
}

const string& OnsWarnListResponse::WarnViewDO::GetThreshold(void) const {
  return Threshold_;
}

bool OnsWarnListResponse::WarnViewDO::GetStatus(void) const {
  return Status_;
}

const std::vector<OnsWarnListResponse::WarnViewDO>& OnsWarnListResponse::GetData(void) const {
  return Data_;
}

const string& OnsWarnListResponse::GetHelpUrl(void) const {
  return HelpUrl_;
}

const char* OnsWarnListResponse::BaseKey(void) {
  return "OnsWarnListResponse";
}

void OnsWarnListResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Data__length = 0;
  UnmarshallerInt(Data__length, response_map, "OnsWarnListResponse.Data.Length");
  if(Data__length >= 0) {
    Data_.resize(Data__length);
    for(int i1 = 0; i1 < Data__length; i1++) {
      int Data_i1_contacts__length = 0;
      UnmarshallerInt(Data_i1_contacts__length, response_map, "OnsWarnListResponse.Data[+"+string_ValueOfInt(i1)+"].contacts.Length");
      if(Data_i1_contacts__length >= 0) {
        Data_[i1].contacts_.resize(Data_i1_contacts__length);
        for(int i2 = 0; i2 < Data_i1_contacts__length; i2++) {
          UnmarshallerString(Data_[i1].contacts_[i2].Name_, response_map, "OnsWarnListResponse.Data[+"+string_ValueOfInt(i1)+"].contacts["+string_ValueOfInt(i2)+"].Name");
          UnmarshallerString(Data_[i1].contacts_[i2].Value_, response_map, "OnsWarnListResponse.Data[+"+string_ValueOfInt(i1)+"].contacts["+string_ValueOfInt(i2)+"].Value");
          UnmarshallerString(Data_[i1].contacts_[i2].Type_, response_map, "OnsWarnListResponse.Data[+"+string_ValueOfInt(i1)+"].contacts["+string_ValueOfInt(i2)+"].Type");
          UnmarshallerString(Data_[i1].contacts_[i2].Params_, response_map, "OnsWarnListResponse.Data[+"+string_ValueOfInt(i1)+"].contacts["+string_ValueOfInt(i2)+"].Params");
          UnmarshallerString(Data_[i1].contacts_[i2].Ari_, response_map, "OnsWarnListResponse.Data[+"+string_ValueOfInt(i1)+"].contacts["+string_ValueOfInt(i2)+"].Ari");
        } // for(int i2 = 0; i2 < Data_i1_contacts__length; i2++) {
      } // if(Data_i1_contacts__length >= 0) {

      UnmarshallerString(Data_[i1].AliyunPK_, response_map, "OnsWarnListResponse.Data["+string_ValueOfInt(i1)+"].AliyunPK");
      UnmarshallerString(Data_[i1].ConsumerID_, response_map, "OnsWarnListResponse.Data["+string_ValueOfInt(i1)+"].ConsumerID");
      UnmarshallerString(Data_[i1].Topic_, response_map, "OnsWarnListResponse.Data["+string_ValueOfInt(i1)+"].Topic");
      UnmarshallerString(Data_[i1].Threshold_, response_map, "OnsWarnListResponse.Data["+string_ValueOfInt(i1)+"].Threshold");
      UnmarshallerBool(Data_[i1].Status_, response_map, "OnsWarnListResponse.Data["+string_ValueOfInt(i1)+"].Status");
    } // for(int i1 = 0; i1 < Data__length; i1++) {
  } // if(Data__length >= 0) {

  UnmarshallerString(HelpUrl_, response_map, "OnsWarnListResponse.HelpUrl");
}


} } // namespace aliyun { namespace Ons {

// end of file 
